<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="./vue.js"></script>
  <div id="app">
    <!-- v-text的缺点是会覆盖元素内部原有的内容 -->
    <p v-text="uname">123</p>
    <p >性别：{{gender}}</p>
    <p v-html="text"></p>
    <p v-text="text"></p>
  </div>
  <script>
  const vm = new Vue({
    el:'#app',
    data:{
      uname:'张三',
      gender:'男',
      text:'<h3 style="color: red;">Hello Word</h3>'
    }
  })
  </script>
</body>
</html>